package com.app.feignservicesample.servicce;

import com.app.feignservicesample.servicce.impl.HiServiceHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: 伴你时光尽头
 * @Date: 2019/11/8 11:41
 */
@FeignClient(value = "order-service",fallback = HiServiceHystrix.class)
public interface HiService {

    @GetMapping("/hi")

    public String hi(@RequestParam String name);
}
